<?php
namespace app\backend\validate;

use think\Validate;

class AuthRule extends Validate
{
    protected $rule =   [
        'name'              => 'require|min:2',
        'val'              => 'require|min:2',
    ];

    protected $message  =   [
        'name.require'      => '权限名称必须',
        'name.min'       => '权限名称不能小于2位',
        'val.require'      => '权限值必须',
        'val.min'       => '权限值不能小于2位',
    ];
}